package com.zhongwang.business.module.quoteManage.quoteManageDao;
import com.zhongwang.business.gen.entity.User;
import com.zhongwang.business.gen.entity.VerifyProcess;
import com.zhongwang.business.module.basic.model.SysUserModel;
import com.zhongwang.business.module.basic.model.VerifyProcessModel;
import com.zhongwang.business.module.quoteManage.quoteManageModel.QuotationMainModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  报价审核管理 接口
 *  * @author zcy
 *  * @date 2020/10/24
 */
@Repository
public interface QuotationApproveDao {
    List<QuotationMainModel> selectQuoteApproveList(QuotationMainModel query);

    SysUserModel findNowNodeByAccount(String account);

    VerifyProcessModel selectNowProcess(QuotationMainModel quotationMainModel);

    VerifyProcessModel selectNowProcess2(QuotationMainModel quotationMainModel);
    VerifyProcessModel selectNextProcessNode(@Param("quoteId") Integer quoteId, @Param("nowNode") Integer nowNode);

    QuotationMainModel selectQttInfo(Integer quoteId);

    /**
     * 修复上边的BUG
     * @param quoteId
     * @return
     */
    QuotationMainModel selectQttInfo2(Integer quoteId);

    VerifyProcessModel selectPreProcessNode(@Param("quoteId")Integer quoteId, @Param("nowNode")Integer nowNode);

    List<QuotationMainModel> selectAppList(Integer quoteId);

    User selectUserInfo(String createAccount);
}
